<template>
  <el-form-item label="onMounted" label-width="150px">
    <el-button
      icon="el-icon-edit"
      plain
      round
      :type="editEventButtonType('onMounted')"
      @click="editEventHandler('onMounted', eventParams)"
    >
      <span>{{i18nt('designer.setting.addEventHandler')}}</span>
    </el-button>
  </el-form-item>
</template>

<script>
  import i18n from "@/utils/i18n"
  import eventMixin from "@/components/form-designer/setting-panel/property-editor/event-handler/eventMixin"

  export default {
    name: "onMounted-editor",
    mixins: [i18n, eventMixin],
    props: {
      designer: Object,
      selectedWidget: Object,
      optionModel: Object,
    },
    data() {
      return {
        eventParams: [],
      }
    }
  }
</script>

<style scoped>

</style>
